#include "Action.h"

namespace ds {
// --------------------------------------------
//
// --------------------------------------------
ActionGroup::~ActionGroup() {
	for ( uint32 i = 0; i < m_Actions.num(); ++i ) {
		delete m_Actions[i];
	}
}

void ActionGroup::start() {
	for ( uint32 i = 0; i < m_Actions.num(); ++i ) {
		m_Actions[i]->start();
	}
}

void ActionGroup::stop() {
	for ( uint32 i = 0; i < m_Actions.num(); ++i ) {
		m_Actions[i]->stop();
	}
}

void ActionGroup::update(float elapsed) {
	for ( uint32 i = 0; i < m_Actions.num(); ++i ) {
		m_Actions[i]->update(elapsed);
	}
}

}
